package jdk8.homework.Demo04;

        import java.util.Date;

public class Demo04 {
    public static void main(String[] args) {
        showLongTime(() -> {
            System.out.println(new Date().getTime());
        });
    }

    private static void showLongTime(CurrentTimePrinter timePrinter) {
        timePrinter.showLongTime();
    }
}
